﻿@model SpotModel
@using Nop.Web.Models.WindAlert;

<h4 style="margin-top:0px;">@T("WindAlert.Spot.WindBox.Title")</h4>
<table>
    <tr>
        <td colspan="2">@Model.Station.WindData.StationAdjustedTime.ToString("dd/MM/yyyy HH:mm")</td>
    </tr>
    <tr>
        <td>@T("WindAlert.Spot.WindBox.Speed"):</td>
        <td>@Model.Station.WindData.WindSpeed</td>
    </tr>
    <tr>
        <td>@T("WindAlert.Spot.WindBox.Gust"):</td>
        <td>@Model.Station.WindData.WindGust</td>
    </tr>
    <tr>
        <td>@T("WindAlert.Spot.WindBox.Direction"):</td>
        <td style="direction:ltr">@Model.Station.WindData.WindDirectionLetters (@Model.Station.WindData.WindDirection)</td>
    </tr>
    <tr>
        <td><span style="color: #a8b3be">.</span>
    <tr>
        <td colspan="2">
            @if (!Model.Station.IsForecast)
            {
                <a href="@Url.RouteUrl("WindChart", new { spotId = Model.Id})" target="_blank">
                    <img src="~/WindAlert/Images/chart_bar.png" />
                    @T("WindAlert.Spot.WaveBox.Charts")
                </a>
            }
            else
            {
                <span style="color: #a8b3be">.</span>
            }
        </td>
    </tr>
</table>